package com.lehecai.ucenter.dao;

import java.io.Serializable;
import java.util.List;

public interface BaseDao<T, ID extends Serializable> {
	public abstract T get(ID paramID);
	
	public abstract List<T> getAll();
	
	public abstract List<T> findList(QueryParam queryParam);

	public abstract int count(QueryParam queryParam);

	public abstract void persist(T paramT);

	public abstract T merge(T paramT);

	public abstract void delete(T paramT);

	public abstract void delete(ID id);

	public abstract void flush();
}
